package org.suze.redis;
import org.junit.Test;
import org.suze.redis.client.Client;
import redis.clients.jedis.Jedis;

import java.util.Set;

/**
 * @description: Redis客户端测试
 * @Date : 2018/9/22 下午1:34
 * @Author : 石冬冬-Seig Heil(dongdong.shi@mljr.com)
 */
public class RedisTest {

    @Test
    public void jedis(){
        Jedis jedis = new Jedis("localhost",6379);
        Set set = jedis.keys("*");
        System.out.println(set);
    }

    @Test
    public void client(){
        Client client = new Client("localhost",6379);
        System.out.println(client.get("10000"));
    }
}
